<template>
	<view class="page">
		<uni-nav-bar left-icon="back" style="border-bottom: none;" title="签到" fixed="true" status-bar="true" @clickLeft="back"
		 backgroundColor="#FE5900" color="#FFFFFF"></uni-nav-bar>
		<view class="bg" @click="signBtn()">
			<view class="btnBox">
				<view class="btn">签到</view>
			</view>
		</view>
		<calendar ref="cale"></calendar>
		<view class="tip">已连续签到{{SignDay}}天</view>
	</view>
</template>

<script> 
	import calendar from '@/components/calendar/calendar.vue';
	export default {
		components:{
			calendar
		},
		data() {
			return {
				current: 0,
				SignDay:0
			}
		},
		onLoad() {
			
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
			signBtn() {
				this.utils.toast('签到成功', 'success');
				this.$refs.cale.IsSign();
				this.SignDay = 1;
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import './index.scss';
</style>
